package main

import "fmt"

func maxValueInArr(arr1 [5]int) {

	max := arr1[0]
	for i := 0; i < 5; i++ {
		if arr1[i] > max {
			max = arr1[i]
		}
	}

	fmt.Println("数组最大值为：", max)

}

func main() {

	var arr1 [5]int =  [5]int {1, 2, 5, 4, 3}
	maxValueInArr(arr1)

}